import config from "@/config"

//系统路由
const routes = [{
        name: "layout",
        path: "/",
        component: () =>
            import ( /* webpackChunkName: "layout" */ '@/layout'),
        redirect: config.DASHBOARD_URL || '/dashboard',
        children: [],
    },
    {
        path: "/login",
        component: () =>
            import ( /* webpackChunkName: "login" */ '@/views/login'),
        meta: {
            title: "登录"
        }
    },
	{
		path: "/gtjaLogin",
		component: () =>
			import ( /* webpackChunkName: "login" */ '@/views/login/gtjaIndex.vue'),
		meta: {
			title: 'SSO登录',
			icon: "el-icon-document",
		},
	},
	{
		path: "/ssoLogin",
		component: () =>
			import ( /* webpackChunkName: "login" */ '@/views/login/ssoIndex.vue'),
		meta: {
			title: 'SSO登录',
			icon: "el-icon-document",
		},
	},
    {
        path: "/user_register",
        component: () =>
            import ( /* webpackChunkName: "userRegister" */ '@/views/login/userRegister'),
        meta: {
            title: "注册"
        }
    },
    {
        path: "/reset_password",
        component: () =>
            import ( /* webpackChunkName: "resetPassword" */ '@/views/login/resetPassword'),
        meta: {
            title: "重置密码"
        }
    },
    {
        path: "/system_menu",
        component: () =>
            import ( /* webpackChunkName: "resetPassword" */ '@/views/setting/menu'),
        meta: {
            title: "菜单管理"
        }
    }, {
        path: "/help",
        component: () =>
            import ( /* webpackChunkName: "login" */ '@/views/helpPage'),
        meta: {
            title: "帮助中心"
        }
    }
]

export default routes;
